//
//  RAURLDefine.h
//  RAFSUManagement
//
//  Created by Piccolo on 30/03/2018.
//  Copyright © 2018 Rayonics. All rights reserved.
//

#ifndef URL_h
#define URL_h

#define URL_TOKEN @"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OWRkZTUxMTZkYjE1ZjYzMWE4YjkwN2QiLCJpYXQiOjE1MTQ5NTk0NjIsImV4cCI6NDY2ODU1OTQ2Mn0.4A7JZOjwzLuC7dH_u6daE_awwaj7oKBEOejhFXOtySk"

#define URL_HEAD @"https://"
#define URL_IP_ADDRESS @"101.132.169.139"
#define URL_PORT @"443"
#define URL_IP_LOGIN(IP_ADDRESS, PORT) [NSString stringWithFormat:@"%@%@:%@%@", URL_HEAD, IP_ADDRESS, PORT, URL_CONNECT]
#define URL_IP [NSString stringWithFormat:@"%@%@:%@%@", URL_HEAD, URL_IP_ADDRESS, URL_PORT, URL_CONNECT]
//#define URL_IP [NSString stringWithFormat:@"%@%@%@", URL_HEAD, URL_IP_ADDRESS, URL_CONNECT]
#define URL_CONNECT @"/api/v1"

//#define URL_POST_IMAGE(ID, QUERY) [NSString stringWithFormat:@"%@/simplefsu/apply", URL_IP, ID, QUERY]//推送安装锁图片

#define URL_POST_APPLY_DEVICE_ID [NSString stringWithFormat:@"%@/simplefsu/apply?%@", URL_IP, RA_SINGLE_TOKEN_QUERY_STRING]//获取device id
#define URL_POST_CONFIRM_DEVICE_ID [NSString stringWithFormat:@"%@/simplefsu/confirm?%@", URL_IP, RA_SINGLE_TOKEN_QUERY_STRING]//确认device id

#endif /* URL_h */
